Show AllShow All

Create a Web script on a Web page

Security  Security vulnerabilities in external files or controls may extend to Web pages that use those items. For example, external style sheets (files with a .css extension), script files (files with a .js extension), custom ASP.NET controls, or other items, may pose a security risk. Be sure your style sheets, add-ins, themes, executables, scripts, controls, or other files come from trusted sources.

  1. If you have not already done so, add the Insert Script command to the Tools menu.

    ShowHow?

  2. Click in your Web page where you want to add a script.
  3. On the Tools menu, point to Macro, and then click Insert Script.
  4. Use the Microsoft Script Editor to write your script.
  5. Return to the Office program.
  6. To update your Web page with the changes, click Refresh Button image on the Refresh toolbar.